<template>
	<!-- @closePopup="" -->
	<AddInvitation ref="AddInvitation" from="detail" :apply_fullname="baseInfo.fullname"
		:resume_id="baseInfo.id"></AddInvitation>
</template>

<script>
	import AddInvitation from '@/components/AddInvitation'
	export default {
		components:{
			AddInvitation
		},
		data() {
			return {
				baseInfo:{
					id:0,
					fullname:''
				}
			}
		},
		onLoad() {
			const eventChannel = this.getOpenerEventChannel();  
			eventChannel.on('acceptDataFromOpenerPage',(data)=>{
				this.$set(this.baseInfo,'fullname',data.apply_fullname)
				this.$set(this.baseInfo,'id',data.resume_id)
			})
		},
		mounted() {
			this.$nextTick(()=>{
				this.$refs.AddInvitation.initCB()
			})
		}
	}
</script>

<style>
</style>